Package com.cisco.pt.impl
Class LTVImpl
java.lang.Object
com.cisco.pt.impl.LTVImpl
- All Implemented Interfaces:
LTV
- Direct Known Subclasses:
AuthChallengeLTV,AuthRequestLTV,AuthResponseLTV,AuthStatusLTV,DisconnectLTV,IPCErrorLTV,IPCEventLTV,IPCEventSubscriptionLTV,IPCMessageLTV,IPCResponseLTV,KeepAliveLTV,MultiUserMessage
Base class for all
LTV implemenations- Author:
- packettracerexapps@external.cisco.com
-
Field Summary
FieldsFields inherited from interface com.cisco.pt.LTV
AUTH_CHALLENGE_TYPE, AUTH_REQUEST_TYPE, AUTH_RESPONSE_TYPE, AUTH_STATUS_TYPE, DISCONNECT_MESSAGE_TYPE, IPC_ERROR_TYPE, IPC_EVENT_SUBSCRIPTION_TYPE, IPC_EVENT_TYPE, IPC_MESSAGE_TYPE, IPC_RESPONSE_TYPE, KEEP_ALIVE_MESSAGE_TYPE, MULTI_USER_MESSAGE_TYPE, NEGOTIATION_MESSAGE_TYPE, PTMP_TYPE_MUCONIN, PTMP_TYPE_MUCONOUT, PTMP_TYPE_MULINKUPDATE, PTMP_TYPE_MULINKUPDATESTATUS, PTMP_TYPE_MUNAMEUPDATE, PTMP_TYPE_MUNEGOREQ, PTMP_TYPE_MUNEGORESP, PTMP_TYPE_MUPDU, PTMP_TYPE_MUPORTADV, PTMP_TYPE_MUSAVENETREQ, PTMP_TYPE_MUSAVENETRESP -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
protected static org.apache.commons.logging.Log logger
-
-
Constructor Details
-
LTVImpl
public LTVImpl()
-
-
Method Details
-
getLength
public int getLength() -
getType
public int getType() -
getValue
-
setLength
public void setLength(int length) -
setType
public void setType(int type) -
setValue
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceLTV- Parameters:
buff- The EncodedBuffer that this object should encode itself into
-
hasResponse
public boolean hasResponse()- Specified by:
hasResponsein interfaceLTV- Returns:
- true if the message generates a response from Packet Tracer
-
isResponse
public boolean isResponse()- Specified by:
isResponsein interfaceLTV- Returns:
- true if the message is a response sent from Packet Tracer
-
isEvent
public boolean isEvent() -
isMuMessage
public boolean isMuMessage()- Specified by:
isMuMessagein interfaceLTV- Returns:
- true if the message is a multiuser message
-
getMessageId
public int getMessageId()- Specified by:
getMessageIdin interfaceLTV- Returns:
- message id, used to match this message with its response from Packet Tracer its value is arbitrary unless (hasResponse() == true OR isResponse() == true)
-
getNextMessageId
public static int getNextMessageId()- Returns:
- int - next IPC message ID
-